package cn.lili.controller.payment;

import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.order.order.entity.dto.OrderSearchParams;
import cn.lili.modules.payment.entity.dos.UserFPointsHistory;
import cn.lili.modules.payment.service.LiUserFpointHistoryService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "f分记录表")
@RestController
@RequestMapping("/payment/fpoint/history")
public class LiUserFpointHistoryController {

    @Autowired
    private LiUserFpointHistoryService fpointHistoryService;

    /**
     * 绿色积分，记录分页查询
     * @return 绿色积分记录
     */
    @GetMapping("/page")
    public ResultMessage<Page<UserFPointsHistory>> fpointsPage(OrderSearchParams searchParams) {
        return fpointHistoryService.fpointsPage(searchParams);
    }


}
